package com.deke.system.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.deke.entity.AclRole;
import com.deke.entity.AclUserRole;

import java.util.List;

/**
 * (AclRole)表数据库访问层
 *
 * @author makejava
 * @since 2022-12-04 14:06:25
 */
public interface AclRoleDao extends BaseMapper<AclRole> {

    /**
     * @create by: Username 刘亦辰 
     * @description: 通过用户id查询角色 
     * @create time: 2022/12/4 14:59
     * @param null
     * @return :  
     **/
    public List<AclRole> findRoleByUserId(String userid);

    void deleteByUserId(String userId);

    void deletePermissionByRoleId(String roleId);

    public Integer updateRoleStatusByid(String id,String deleted);

    public Integer deleteRoleById(String roleId);

    public AclUserRole queryRoleByRoleId(String roleID);
}

